﻿using Coder.Workflow;
using Fee.Orders.AuthProjectWorkflow;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Fee.Mapping.Orders.AuthProjectOrders
{
    public class AuthProjectOrderMapping : IEntityTypeConfiguration<AuthProjectOrder>
    {
        public void Configure(EntityTypeBuilder<AuthProjectOrder> builder)
        {
            builder.HasBaseType(typeof(ProcessInstance));
         
            builder.HasMany(f => f.CostDetails);
            builder.HasMany(f => f.Attaches);
            builder.Property(_ => _.AuthProjectNumber).HasMaxLength(64);

        }
    }
}